<?php get_header(); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
              <div class="post" id="post-<?php the_ID(); ?>">
                <h2><a href="<?php the_permalink() ?>" rel="bookmark" title='Permanent Link to <?php echo htmlspecialchars(get_the_title(),ENT_QUOTES); ?>'><?php the_title(); ?></a></h2>
                <small style="margin-left: 42px;"><?php the_time(get_option('date_format')) ?>  by <?php the_author() ?></small>

                <div class="entry">
                  <?php the_content('Read the rest of this entry &raquo;'); ?>
                </div>

                <p class="postmetadata">Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?>  <?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?></p>
              </div>

<?php endwhile; ?>

              <div class="navigation">
                <p><?php next_posts_link('&laquo; Older Entries') ?><br />
                <?php previous_posts_link('Newer Entries &raquo;') ?></p>
              </div>

<?php else : ?>

              <h2>Not Found</h2>
              <p>Sorry, but you are looking for something that isn't here.</p>
              <p><?php include (TEMPLATEPATH . "/searchform.php"); ?></p>

<?php endif; ?>
            </div>
          </div>
        <div style="clear: both"></div>
        </div>
      </div>
      <!-- /wrapper --><!-- /main-content -->

<?php get_sidebar(); ?>

<?php get_footer(); ?>
